<template>
	<view class="p20">
		<view class="fs30 tit-ac mb12 relative ml20">
			<text>资格证书</text>
		</view>
		<view class="p20">
			<image :src="$user.certificate_img" @click="$tool.lookImg([$user.certificate_img])" class="w-max h348" mode="widthFix"></image>
		</view>
		<view class="pf bottom0 left0  w-max">
			<view class="p20">
				<imgList hide @setImg="submit" ref="img" />
				<u-button type="warning" ripple @click="$refs.img.upImg('setImg')">修改/上传</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			submit(e) {
				let params = {
					certificate:e.id
				}
				this.$request('/master/my/editInfo', params).then(res => {
					this.$msg(res.msg)
					this.$getUser()
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #F8F8F8;
	}
</style>
